package com.ai.dmc.index.quartz.jobs;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

import com.ai.dmc.index.common.exception.BusinessException;
import com.ai.dmc.index.intf.service.quartz.IIndexRefreshTimeService;

public class IndexRefreshStateTimeJob extends QuartzJobBean{

//    private IIndexRefreshTimeService indexRefreshTimeService;
//
//    public void setIndexRefreshTimeService(IIndexRefreshTimeService indexRefreshTimeService) {
//        this.indexRefreshTimeService = indexRefreshTimeService;
//    }

    @Override
    protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
//        try {
////            this.indexRefreshTimeService.indexStateRefresh();
//        } catch (BusinessException e) {
//            e.printStackTrace();
//        }
        System.out.println("定时任务开始");
    }
    
    public void init(JobExecutionContext context) throws JobExecutionException{
    	System.out.println("woshiyigedingshiqi===============================================");
    }
}
